/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;
/**
 *
 * @author Chong & Ali
 */
import java.awt.Image;
import java.net.URL;
import javax.swing.ImageIcon;

public class Goal extends Floor{
    
    private boolean empty;
     
    public Goal(Location location) {
        super(location);
        URL loc = this.getClass().getResource("goal.png");
        Image image = new ImageIcon(loc).getImage();
        super.setImage(image);
        this.empty = true;
    }
    
    public void setEmpty(boolean empty){
        this.empty = empty;
    }
    
    public boolean isFree(){
        return empty;
    }
}



